var remove = document.querySelector('.login-tip .remove');
remove.addEventListener('click',function(){
	document.querySelector('.login-tip').style.display = 'none';
})


/*吸顶效果*/
window.addEventListener('scroll',function(){

	//获取距离顶部的距离
	var scrollTop = window.pageXOffset || document.documentElement.scrollTop;
		console.log(scrollTop);
	if(scrollTop >= 205){
		document.getElementById('product-box').classList.remove('product-box-hidden');
		document.getElementById('product-box').style.top = '0';
	}else{
		document.getElementById('product-box').classList.add('product-box-hidden');
	}
})